package com.fzb.forum4j.po;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

@Entity
public class Blog extends CommonArea{

	@Column(length=500)
	private String digest;

	@ManyToOne
	@JoinColumn(name="bsId")
	private BlogSort blogSort;

	@OneToMany(mappedBy="area")
	private List<Comment> comments=new ArrayList<Comment>();
	
	
	private int accessLevel;

	private boolean isOriginal;

	private boolean isStick;

 
	public String getDigest() {
		return digest;
	}

	public void setDigest(String digest) {
		this.digest = digest;
	}

	public BlogSort getBlogSort() {
		return blogSort;
	}

	public void setBlogSort(BlogSort blogSort) {
		this.blogSort = blogSort;
	}

	public int getAccessLevel() {
		return accessLevel;
	}

	public void setAccessLevel(int accessLevel) {
		this.accessLevel = accessLevel;
	}

	public boolean isOriginal() {
		return isOriginal;
	}

	public void setOriginal(boolean isOriginal) {
		this.isOriginal = isOriginal;
	}

	public boolean isStick() {
		return isStick;
	}

	public void setStick(boolean isStick) {
		this.isStick = isStick;
	}

	public List<Comment> getComments() {
		return comments;
	}

	public void setComments(List<Comment> comments) {
		this.comments = comments;
	}

}
